﻿using Cheems.Interface.Models.Media;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cheems.Interface.Media
{
    public interface ISound
    {
        /// <summary>
        /// 播放一次声音
        /// </summary>
        /// <param name="soundFilePath">播放路径</param>
        Task PlayOnceAsync(string soundFilePath);

        /// <summary>
        /// 播放若干秒声音
        /// </summary>
        /// <param name="duration">播放时长，单位：ms</param>
        /// <param name="soundFilePath">播放路径</param>
        /// <returns></returns>
        Task PlayForDurationAsync(double duration, string soundFilePath);

        /// <summary>
        /// 播放内置音频
        /// </summary>
        /// <param name="audioLibrary"></param>
        Task PlayFixedAudio(AudioLibrary audioLibrary);
    }
}
